<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%>
<%@page import="java.sql.Timestamp"%>
<%@page import="com.wanmait.cookBook.vo.Diary"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%String path = request.getContextPath(); %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>健康_饮食健康_关注健康饮食塑造完美生活_美食天下</title>
    <script type="text/javascript" src="<%=path%>/front/js/jquery-3.5.1.min.js"></script>
<meta name="keywords" content="健康,美食天下健康,饮食健康,健康饮食,健康养生,健康生活" />
<meta name="description" content="美食天下健康频道提供饮食健康，健康生活方式等内容，针对日常生活中饮食健康和健康生活小细节作出详细描述，以供大家参考。" />
<meta name="renderer" content="webkit">
<link rel="shortcut icon" href="//static.meishichina.com/v6/img/lib/f.ico"/>
<link rel="apple-touch-icon" href="//static.meishichina.com/v6/img/lib/wapico.png" />
<link rel="stylesheet" type="text/css" href="//static.meishichina.com/v6/css/lib/all.css?v1=8">
<link rel="stylesheet" type="text/css" href="//static.meishichina.com/v6/css/lib/cms.css?v1=2018-10-09">
<script type="text/javascript" src="//static.meishichina.com/v6/js/lib/dfp-list-5.js"></script>


<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<div class="cms_list clear" id="cms_list_living">
<ul class="on">
<% ArrayList<Diary> getNewDiary = (ArrayList<Diary>)request.getAttribute("getNewDiary"); %>
<%for(Diary diary:getNewDiary)
{
%>
	 <li class="nopic">
									
						<div class="detail">
								<h4> <a title="" target="_blank" href="<%=path%>/DiaryServlet?action=showDiary&diaryId=<%=diary.getId()%>"><%=diary.getDiaryName() %></a> </h4>
								<p class="substatus">
											
									<% SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
								     String time = format.format(diary.getPublishTime()); %> 
								    <%=time %>											
								</p>
								<p class="subcontent"><%=diary.getDiaryContext() %></p>
						</div>
	</li>

<%	
}
%>

</ul>
</div>





</body>
</html>